package com.mega.fe.util.client;

import com.google.common.collect.Lists;
import net.minecraft.client.gui.components.Button;
import net.minecraft.client.gui.screens.Screen;
import net.minecraft.network.chat.Component;

import java.util.List;

public class SelectEntityScreen extends Screen {
    protected SelectEntityScreen(Component p_96550_) {
        super(p_96550_);
    }

    private final List<Button> buttons = Lists.newArrayList();

    @Override
    protected void init() {
        super.init();
        buttons.add((Button)this.addRenderableWidget(Button.builder(Component.literal("s"), (p_280794_) -> {
            this.minecraft.player.respawn();
            p_280794_.active = false;
        }).bounds(this.width / 2 - 100, this.height / 4 + 72, 200, 20).build()));
    }
}
